//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//

package com.ruoyi.live.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

public class LiveServer implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(
            value = "id",
            type = IdType.AUTO
    )
    private Long id;
    private Long createTime;
    private Long createUser;
    private Integer state;
    private String filePath;
    private Integer serverPort;
    private String serverIp;
    private Integer maxNum;
    private Integer currentNum;
    private String serverName;
    private Integer httpPort;
    @TableField(
            exist = false
    )
    private Integer status;

    public LiveServer() {
    }

    public Long getId() {
        return this.id;
    }

    public Long getCreateTime() {
        return this.createTime;
    }

    public Long getCreateUser() {
        return this.createUser;
    }

    public Integer getState() {
        return this.state;
    }

    public String getFilePath() {
        return this.filePath;
    }

    public Integer getServerPort() {
        return this.serverPort;
    }

    public String getServerIp() {
        return this.serverIp;
    }

    public Integer getMaxNum() {
        return this.maxNum;
    }

    public Integer getCurrentNum() {
        return this.currentNum;
    }

    public String getServerName() {
        return this.serverName;
    }

    public Integer getHttpPort() {
        return this.httpPort;
    }

    public Integer getStatus() {
        return this.status;
    }

    public LiveServer setId(final Long id) {
        this.id = id;
        return this;
    }

    public LiveServer setCreateTime(final Long createTime) {
        this.createTime = createTime;
        return this;
    }

    public LiveServer setCreateUser(final Long createUser) {
        this.createUser = createUser;
        return this;
    }

    public LiveServer setState(final Integer state) {
        this.state = state;
        return this;
    }

    public LiveServer setFilePath(final String filePath) {
        this.filePath = filePath;
        return this;
    }

    public LiveServer setServerPort(final Integer serverPort) {
        this.serverPort = serverPort;
        return this;
    }

    public LiveServer setServerIp(final String serverIp) {
        this.serverIp = serverIp;
        return this;
    }

    public LiveServer setMaxNum(final Integer maxNum) {
        this.maxNum = maxNum;
        return this;
    }

    public LiveServer setCurrentNum(final Integer currentNum) {
        this.currentNum = currentNum;
        return this;
    }

    public LiveServer setServerName(final String serverName) {
        this.serverName = serverName;
        return this;
    }

    public LiveServer setHttpPort(final Integer httpPort) {
        this.httpPort = httpPort;
        return this;
    }

    public LiveServer setStatus(final Integer status) {
        this.status = status;
        return this;
    }

    public String toString() {
        return "LiveServer(id=" + this.getId() + ", createTime=" + this.getCreateTime() + ", createUser=" + this.getCreateUser() + ", state=" + this.getState() + ", filePath=" + this.getFilePath() + ", serverPort=" + this.getServerPort() + ", serverIp=" + this.getServerIp() + ", maxNum=" + this.getMaxNum() + ", currentNum=" + this.getCurrentNum() + ", serverName=" + this.getServerName() + ", httpPort=" + this.getHttpPort() + ", status=" + this.getStatus() + ")";
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof LiveServer)) {
            return false;
        } else {
            LiveServer other = (LiveServer)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label155: {
                    Object this$id = this.getId();
                    Object other$id = other.getId();
                    if (this$id == null) {
                        if (other$id == null) {
                            break label155;
                        }
                    } else if (this$id.equals(other$id)) {
                        break label155;
                    }

                    return false;
                }

                Object this$createTime = this.getCreateTime();
                Object other$createTime = other.getCreateTime();
                if (this$createTime == null) {
                    if (other$createTime != null) {
                        return false;
                    }
                } else if (!this$createTime.equals(other$createTime)) {
                    return false;
                }

                Object this$createUser = this.getCreateUser();
                Object other$createUser = other.getCreateUser();
                if (this$createUser == null) {
                    if (other$createUser != null) {
                        return false;
                    }
                } else if (!this$createUser.equals(other$createUser)) {
                    return false;
                }

                label134: {
                    Object this$state = this.getState();
                    Object other$state = other.getState();
                    if (this$state == null) {
                        if (other$state == null) {
                            break label134;
                        }
                    } else if (this$state.equals(other$state)) {
                        break label134;
                    }

                    return false;
                }

                label127: {
                    Object this$filePath = this.getFilePath();
                    Object other$filePath = other.getFilePath();
                    if (this$filePath == null) {
                        if (other$filePath == null) {
                            break label127;
                        }
                    } else if (this$filePath.equals(other$filePath)) {
                        break label127;
                    }

                    return false;
                }

                label120: {
                    Object this$serverPort = this.getServerPort();
                    Object other$serverPort = other.getServerPort();
                    if (this$serverPort == null) {
                        if (other$serverPort == null) {
                            break label120;
                        }
                    } else if (this$serverPort.equals(other$serverPort)) {
                        break label120;
                    }

                    return false;
                }

                Object this$serverIp = this.getServerIp();
                Object other$serverIp = other.getServerIp();
                if (this$serverIp == null) {
                    if (other$serverIp != null) {
                        return false;
                    }
                } else if (!this$serverIp.equals(other$serverIp)) {
                    return false;
                }

                label106: {
                    Object this$maxNum = this.getMaxNum();
                    Object other$maxNum = other.getMaxNum();
                    if (this$maxNum == null) {
                        if (other$maxNum == null) {
                            break label106;
                        }
                    } else if (this$maxNum.equals(other$maxNum)) {
                        break label106;
                    }

                    return false;
                }

                Object this$currentNum = this.getCurrentNum();
                Object other$currentNum = other.getCurrentNum();
                if (this$currentNum == null) {
                    if (other$currentNum != null) {
                        return false;
                    }
                } else if (!this$currentNum.equals(other$currentNum)) {
                    return false;
                }

                label92: {
                    Object this$serverName = this.getServerName();
                    Object other$serverName = other.getServerName();
                    if (this$serverName == null) {
                        if (other$serverName == null) {
                            break label92;
                        }
                    } else if (this$serverName.equals(other$serverName)) {
                        break label92;
                    }

                    return false;
                }

                Object this$httpPort = this.getHttpPort();
                Object other$httpPort = other.getHttpPort();
                if (this$httpPort == null) {
                    if (other$httpPort != null) {
                        return false;
                    }
                } else if (!this$httpPort.equals(other$httpPort)) {
                    return false;
                }

                Object this$status = this.getStatus();
                Object other$status = other.getStatus();
                if (this$status == null) {
                    if (other$status != null) {
                        return false;
                    }
                } else if (!this$status.equals(other$status)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof LiveServer;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $id = this.getId();
        int result1 = result * 59 + ($id == null ? 43 : $id.hashCode());
        Object $createTime = this.getCreateTime();
        result1 = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
        Object $createUser = this.getCreateUser();
        result1 = result * 59 + ($createUser == null ? 43 : $createUser.hashCode());
        Object $state = this.getState();
        result1 = result * 59 + ($state == null ? 43 : $state.hashCode());
        Object $filePath = this.getFilePath();
        result1 = result * 59 + ($filePath == null ? 43 : $filePath.hashCode());
        Object $serverPort = this.getServerPort();
        result1 = result * 59 + ($serverPort == null ? 43 : $serverPort.hashCode());
        Object $serverIp = this.getServerIp();
        result1 = result * 59 + ($serverIp == null ? 43 : $serverIp.hashCode());
        Object $maxNum = this.getMaxNum();
        result1 = result * 59 + ($maxNum == null ? 43 : $maxNum.hashCode());
        Object $currentNum = this.getCurrentNum();
        result1 = result * 59 + ($currentNum == null ? 43 : $currentNum.hashCode());
        Object $serverName = this.getServerName();
        result1 = result * 59 + ($serverName == null ? 43 : $serverName.hashCode());
        Object $httpPort = this.getHttpPort();
        result1 = result * 59 + ($httpPort == null ? 43 : $httpPort.hashCode());
        Object $status = this.getStatus();
        result1 = result * 59 + ($status == null ? 43 : $status.hashCode());
        return result1;
    }
}
